<?php
    $graph = $_POST["GRAPH_SELECT"];
    $url= "http://giswebcenter.mwa.co.th/mwa/services/DataService.svc/";
    $rest = "http://172.16.195.26/ajaxservice/api/data/?url=";
    //$url= "http://172.16.195.186/mwa/services/DataService.svc/";   

    //$url="http://giswebcenter.mwa.co.th/mwa/ashx/Proxy.ashx?http://giswebcenter.mwa.co.th/mwa/services/DataService.svc/BACKOFFICE_Q_PIPEMAIN";

    try {
            error_reporting(0);	
            header('Content-Type: text/plain');
            
            //$page = file_get_contents($url);
            //$page = file_get_contents("http://172.16.195.186/mwa/ashx/Proxy.ashx?".$url.$graph);
            $page = file_get_contents($rest."http://giswebcenter.mwa.co.th/mwa/ashx/Proxy.ashx&parameter=".$url.$graph);
            //$page = file_get_contents("http://giswebcenter.mwa.co.th/mwa/ashx/Proxy.ashx?".$url);
            echo $page;

        } 
    catch (Exception $e) {
            echo ("Error" . " " . $e);
    }
?>

